package com.sharding5.multi.mybatisplus.seata.mapper.store;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sharding5.multi.mybatisplus.seata.pojo.Goods;
import org.apache.ibatis.annotations.Param;

/**
 * @author lenovo
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    /**
     * 方法描述
     *
     * @param goodsId
     * @return com.sharding.seata.multi.demo.pojo.Goods
     */
    Goods selectOneGoods(Long goodsId);

    /**
     * 方法描述
     *
     * @param goodsId
     * @param changeAmount
     * @return int
     */
    int updateGoodsStock(@Param("goodsId") Long goodsId, @Param("changeAmount") Integer changeAmount);
}
